package cn.torna.tornaexample.controller.generic;

import cn.torna.tornaexample.common.Result;
import cn.torna.tornaexample.controller.product.vo.ProductVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 六如
 */
@Api("泛型接口")
@RestController
public class GenericController extends ParentController<UserDTO, UserVO> {


    @ApiOperation("泛型接口分页返回")
    @GetMapping("page")
    public Result<Page<ProductVO>> page() {
        return Result.ok(new Page<>());
    }

}
